import request from "../axios";
import axios from 'axios';
import { instance, plainAxios,instanceFlask }  from "../axios";
// 改为获取全部联系人聊天记录
export const getMessages = (userId) => {
  return instanceFlask.get(`/messages/${userId}`);
};

// 删除某个联系人的聊天记录不变
export const deleteMessages = (userId, contactId) => {
  return instanceFlask.delete(`/messages/${userId}/${contactId}`);
};
